how to find the first five terms